package com.diy.sigmund;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * Document: https://nacos.io/zh-cn/docs/quick-start-spring-cloud.html
 */
@SpringBootApplication
public class NacosConfigApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(NacosConfigApplication.class, args);
        String useLocalCache = context.getEnvironment().getProperty("useLocalCache");
        System.out.println("useLocalCache=" + useLocalCache);
        String info = context.getEnvironment().getProperty("info");
        System.out.println("info=" + info);
    }
}


